package com.qys.livesMall.shop.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qys.livesMall.shop.dao.ShopOrderSettlementDao;
import com.qys.livesMall.shop.mapper.ShopOrderSettlementInfoMapper;
import com.qys.livesMall.shop.modal.entity.ShopOrderSettlementInfo;
import org.springframework.stereotype.Service;

/**
 * @menu ShopOrderSettlementDaoImpl
 * @date 2023/07/13 14:09
 */
@Service
public class ShopOrderSettlementDaoImpl extends ServiceImpl<ShopOrderSettlementInfoMapper, ShopOrderSettlementInfo> implements ShopOrderSettlementDao {

    @Override
    public ShopOrderSettlementInfo getByOrderId(Long orderId) {
        LambdaQueryWrapper<ShopOrderSettlementInfo> qw=new LambdaQueryWrapper();
        qw.eq(ShopOrderSettlementInfo::getOrderId,orderId);
        return getOne(qw);
    }
}

